package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: homechen
 * Date: 2024-03-23
 * Time: 13:52
 */
class A {
    public void sayHi() {
        System.out.println("Hi!");
    }
}
class B extends A {
    public void sayHi() {
        System.out.println("你好!");
    }
}
class C extends A {
    public void sayHi() {
        System.out.println("世界!");
    }
}
//class D extends B, C {
//    public static void main(String[] args) {
//        D d = new D();
//        d.sayHi(); // 这里调用时，会出现二义性问题
//    }
//}

public class Test {
}
